package com.ruoyi.system.service;

import com.ruoyi.system.domain.EmergencyRescueFacilities;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 应急救援设施(EmergencyRescueFacilities)表服务接口
 *
 * @author makejava
 * @since 2022-11-16 15:23:18
 */
public interface EmergencyRescueFacilitiesService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    EmergencyRescueFacilities queryById(Integer id);

    /**
     * 分页查询
     *
     * @param emergencyRescueFacilities 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<EmergencyRescueFacilities> queryByPage(EmergencyRescueFacilities emergencyRescueFacilities, PageRequest pageRequest);

    List<EmergencyRescueFacilities> selectList(EmergencyRescueFacilities emergencyRescueFacilities);

    /**
     * 新增数据
     *
     * @param emergencyRescueFacilities 实例对象
     * @return 实例对象
     */
    EmergencyRescueFacilities insert(EmergencyRescueFacilities emergencyRescueFacilities);

    /**
     * 修改数据
     *
     * @param emergencyRescueFacilities 实例对象
     * @return 实例对象
     */
    EmergencyRescueFacilities update(EmergencyRescueFacilities emergencyRescueFacilities);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    String importExcel(List<EmergencyRescueFacilities> emergencyRescueFacilitiess, Boolean isUpdateSupport, String operName);


}
